home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / nihcl-30.lha / nihcl-3.0 / test / iterator.v < prev    next >
Text File  |  1990-05-19  |  2KB  |  102 lines

  1.  
  2. Test class Iterator
  3. OrderedCltn[Point[(0,0)]
  4. Point[(1,1)]
  5. Point[(2,2)]
  6. Point[(3,3)]
  7. Point[(4,4)]
  8. Point[(5,5)]
  9. ]
  10. Set[Point[(0,0)]
  11. Point[(5,5)]
  12. Point[(4,4)]
  13. Point[(3,3)]
  14. Point[(2,2)]
  15. Point[(1,1)]
  16. ]
  17. LinkedList[Point[(0,0)]
  18. Point[(5,5)]
  19. Point[(4,4)]
  20. Point[(3,3)]
  21. Point[(2,2)]
  22. Point[(1,1)]
  23. ]
  24. Heap[Point[(0,0)]
  25. Point[(1,1)]
  26. Point[(2,2)]
  27. Point[(3,3)]
  28. Point[(4,4)]
  29. Point[(5,5)]
  30. ]
  31.  
  32. Test Iterator(OrderedCltn).storeOn()
  33. Iterator[OrderedCltn[0]#0]
  34. (0,0)(1,1)(2,2)
  35. Iterator[OrderedCltn[3]#0]
  36.  
  37. Test Iterator(OrderedCltn) readFrom()
  38. Iterator[OrderedCltn[3]#0]
  39. (3,3)(4,4)(5,5)
  40. Test Iterator(OrderedCltn).deepCopy()
  41. Iterator[OrderedCltn[3]#0]
  42. (3,3)(4,4)(5,5)
  43. Test Iterator(OrderedCltn).reset()
  44. Iterator[OrderedCltn[0]#0]
  45. (0,0)(1,1)(2,2)(3,3)(4,4)(5,5)
  46.  
  47. Test Iterator(LinkedList).storeOn()
  48. Iterator[LinkedList[0]#0]
  49. (0,0)(5,5)(4,4)
  50. Iterator[LinkedList[3]#0]
  51.  
  52. Test Iterator(LinkedList) readFrom()
  53. Iterator[LinkedList[3]#0]
  54. (3,3)(2,2)(1,1)
  55. Test Iterator(LinkedList).deepCopy()
  56. Iterator[LinkedList[3]#0]
  57. (3,3)(2,2)(1,1)
  58. Test Iterator(LinkedList).reset()
  59. Iterator[LinkedList[0]#0]
  60. (0,0)(5,5)(4,4)(3,3)(2,2)(1,1)
  61.  
  62. Test Iterator(Heap).storeOn()
  63. Iterator[Heap[0]#0 Heap[Point[(0,0)]
  64. Point[(1,1)]
  65. Point[(2,2)]
  66. Point[(3,3)]
  67. Point[(4,4)]
  68. Point[(5,5)]
  69. ]
  70. ]
  71. (0,0)(1,1)(2,2)
  72. Iterator[Heap[3]#0 Heap[Point[(3,3)]
  73. Point[(4,4)]
  74. Point[(5,5)]
  75. ]
  76. ]
  77.  
  78. Test Iterator(Heap) readFrom()
  79. Iterator[Heap[3]#0 Heap[Point[(3,3)]
  80. Point[(4,4)]
  81. Point[(5,5)]
  82. ]
  83. ]
  84. (3,3)(4,4)(5,5)
  85. Test Iterator(Heap).deepCopy()
  86. Iterator[Heap[3]#0 Heap[Point[(3,3)]
  87. Point[(4,4)]
  88. Point[(5,5)]
  89. ]
  90. ]
  91. (3,3)(4,4)(5,5)
  92. Test Iterator(Heap).reset()
  93. Iterator[Heap[0]#0 Heap[Point[(0,0)]
  94. Point[(1,1)]
  95. Point[(2,2)]
  96. Point[(3,3)]
  97. Point[(4,4)]
  98. Point[(5,5)]
  99. ]
  100. ]
  101. (0,0)(1,1)(2,2)(3,3)(4,4)(5,5)
  102.